import instance from "./request";
// 根据id查询表单数据
export const getOrderSettingById = (id: number): RES<IOrderSettingResultModel> => {
  return instance({
    url: `/orderSetting/${id}`,
  })
}
// 根据id修改指定表单设置
export const updateOrderSettingById = (data: { id: number, orderSetting: IOrderSettingResultModel }): RES<number> => {
  return instance({
    url: `orderSetting/update/${data.id}`,
    method: "POST",
    data: data.orderSetting
  })
}
